package org.example.com.zwh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_order") // 添加表名映射
public class Order {
    @TableId(type = IdType.AUTO)
    private int id;
    @TableField("order_id")
    private String orderId;
    private String userId;
    private String productId;
    private int status;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
